package com.train.course.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class QueryDTO {
    private Long categoryId;

    private Long videoCourseId;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
    private LocalDateTime createTime;

    /** 排序类型: like(点赞数), collect(收藏数) */
    private String sortType;

    /** 上次查询的点赞数(用于游标分页) */
    private Long lastLikeCount;

    /** 上次查询的收藏数(用于游标分页) */
    private Long lastCollectCount;
}
